<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">

    </div>
    <script>
        Vue.mixin({
            created(){
                console.log('这是通过混入的created钩子函数');
                vue myOption = this.$options.myOption;
                if(myOption){
                    console.log(myOption.toUpperCase());
                }
                    
            }
            
        });

        var vm = new Vue({
            created(){
                console.log('这是Vue实例当中的created钩子函数');
            },
            myOption:'hello vue!',
            el:'#app'
        });
    </script>
</body>
</html>